<template>
	<view class="skeleton-line" :style="{
			width: w+'rpx',
			height: h+'rpx',
			borderRadius: r+'rpx',
			marginTop: mt+'rpx'
		}">

	</view>
</template>

<script>
	export default {
		props: {
			w: {
				type: String | Number,
				default: '',
			},

			h: {
				type: String | Number,
				default: '',
			},

			r: {
				type: String | Number,
				default: '',
			},

			mt: {
				type: String | Number,
				default: '',
			},

		},
		data() {
			return{
				
			}
		},
		mounted() {
			
		},
		methods: {
			
		}
	}
</script>

<style scoped lang="scss">
	@keyframes shimmer {
		0% {
			background-position: -468px 0;
		}

		100% {
			background-position: 468px 0;
		}
	}

	.skeleton-line {
		width: 100%;
		height: 20rpx;
		margin-top: 20rpx;
		animation-duration: 1.25s;
		animation-fill-mode: forwards;
		animation-iteration-count: infinite;
		animation-name: shimmer;
		animation-timing-function: linear;
		background: #f6f7f8;
		background: linear-gradient(to right, #eeeeee 8%, #dddddd 18%, #eeeeee 33%);
		background-size: 800px 104px;
		position: relative;
	}
</style>